//
//  GroupModel.m
//  糗事百科
//
//  Created by 奚超明 on 16/6/1.
//  Copyright © 2016年 奚超明. All rights reserved.
//

#import "GroupModel.h"

@implementation GroupModel

+ (instancetype)groupWithDic:(NSDictionary *)dic
{
    GroupModel *model = [[GroupModel alloc] init];
    [model setValuesForKeysWithDictionary:dic];
    return model;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"description"]) {
        self.desc = value;
    }
}

@end
